package com.example.struct;
/**
 * @author:我叫程晓非
 * @desc:一笔画边数据结构
 * @date:2021-11-07
 * @version:1.0
 */
public class Edge{
    public int x;
    public int y;
    //0-未联通状态 1联通状态
    public int state;
    //dfs标识访问状态
    public boolean visit;
    public Edge(){

    }
    public Edge(int x,int y,int state,boolean visit){
        this.x = x;
        this.y = y;
        this.state = state;
        this.visit = visit;

    }

    public String toString(){
//        return "[边 ("+(x/row)+","+(x%col)+")->("+(y/row)+","+(y%col)+")]";
        return "[边("+x+"->"+y+")]";
    }
}
